<?php

class Catalogue_Bootstrap extends Zend_Application_Bootstrap_Bootstrap {

	protected $_moduleName = 'catalogue';

	protected function _initDefaultStorage() {
		
		Workset_Model_Object_Abstract::setDefaultStorage(Catalogue_Model_Object_Abstract::T_OBJECT, 'Catalogue_Model_Object_Storage_Table');
		Workset_Model_Object_Abstract::setDefaultStorage(Catalogue_Model_Object_Abstract::T_CATEGORY, 'Catalogue_Model_Category_Storage_Table');
		Workset_Model_Object_Abstract::setDefaultStorage(Catalogue_Model_Object_Abstract::T_ATTRIBUTE, 'Catalogue_Model_Attribute_Storage_Table');
		Workset_Model_Object_Abstract::setDefaultStorage(Catalogue_Model_Object_Abstract::T_ATTRIBUTE_ENUM, 'Catalogue_Model_Attribute_Enum_Storage_Table');
		Workset_Model_Object_Abstract::setDefaultStorage(Catalogue_Model_Object_Abstract::T_ATTRIBUTE_ENUM_ITEM, 'Catalogue_Model_Attribute_Enum_Item_Storage_Table');
	}

	protected function _initController() {

		// Задаём путь к помошникам действий модуля
		$path = Zend_Controller_Front::getInstance()->getModuleDirectory($this->_moduleName);
		Zend_Controller_Action_HelperBroker::addPath($path.'/helpers', 'Catalogue_Helper');

	}

}

?>